x86/fxsave: bring in line with recent xsave adjustments
authorJan Beulich <jbeulich@suse.com>
Tue, 2 Jul 2013 06:42:49 +0000 (08:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 Jul 2013 06:42:49 +0000 (08:42 +0200)
commitf6c8c791522d6a2ef5e6abd44d0ed005446242b5
tree7795e2a9b5e5832b13b6a91136149a8d5c155b7d
parentf9755488bf17c056111d1e442be394cfb63d7788
x86/fxsave: bring in line with recent xsave adjustments

Defer the FIP/FDP pointer reset needed on AMD CPUs to the restore path,
and switch from using EMMS to FFREE here too (to be resistant against
eventual future CPUs without MMX support). Also switch from using an
almost typeless pointer in fpu_fxrstor() to a properly typed one, thus
telling the compiler the truth about which memory gets accessed.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/i387.c